from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from django.contrib.auth.models import User, Group
admin.autodiscover()

# Don't show User and Group stuff
# in the wolfdragonscheduler admin site.
# We don't want it.
admin.site.unregister(User)
admin.site.unregister(Group)

urlpatterns = patterns('',
    (r'^$', 'wolfdragonscheduler.wdsched.views.index'),
    (r'^editor/', 'wolfdragonscheduler.wdsched.views.editor'),
    (r'^begin/', 'wolfdragonscheduler.wdsched.views.begin_schedule'),
    (r'^add_course/(\d+)/',
         'wolfdragonscheduler.wdsched.views.add_course_to_schedule'),
    (r'remove_course/(\d+)/',
         'wolfdragonscheduler.wdsched.views.remove_course_from_schedule'),
    (r'generate/(\d+)?',
         'wolfdragonscheduler.wdsched.views.generate'),
    (r'basicpage/([^/]*)/',
        'wolfdragonscheduler.wdsched.views.basicpage'),
    (r'^admin/', include(admin.site.urls)),
)
